#ifndef KERNELWIDGET_H
#define KERNELWIDGET_H

#include <QWidget>
#include <QtCL/qclcontext.h>

namespace Ui {
    class kernelWidget;
}

class Highlighter;

class KernelWidget : public QWidget
{
    Q_OBJECT

public:
    explicit KernelWidget(QWidget *parent = 0);
    ~KernelWidget();

protected:
    bool promptForModifications();

private slots:
    void selectContext(QCLContext * pContext = NULL);

    void on_btnLoadKernel_clicked();

    void on_btnSaveKernel_clicked();

    void on_cbxFontSize_currentIndexChanged(const QString & text);
    void closeEvent(QCloseEvent * event);

private:
    Ui::kernelWidget *ui;

    QCLContext * m_pContext;
    Highlighter * m_pHighlighter;
};

#endif // KERNELWIDGET_H
